// ignore_for_file: non_constant_identifier_names

class CommunityTagModel {
  String? id;
  String? sectionName;
  String? desc;
  String? img;
  bool? followed;
  int? playCount;

  bool isSelected = false;
  static CommunityTagModel fromJson(Map<String, dynamic>? map) {
    map ??= {};
    CommunityTagModel model = CommunityTagModel();

    if (map["id"] != null) {
      model.id = map["id"];
    } else {
      model.id = map["ID"];
    }
    if (map["sectionName"] != null) {
      model.sectionName = map["sectionName"];
    } else {
      model.sectionName = map["TagName"];
    }

    if (map["desc"] != null) {
      model.desc = map["desc"];
    } else {
      model.desc = map["TagDesc"];
    }
    if (map["img"] != null) {
      model.img = map["img"];
    } else {
      model.img = map["CoverImg"];
    }
    if (map["followed"] != null) {
      model.followed = map["followed"];
    } else {
      model.followed = map["collected"];
    }
    if (map["playCount"] != null) {
      model.playCount = map["playCount"];
    } else {
      model.playCount = map["VPlayCount"];
    }
    return model;
  }
}
